package com.shao.onlinepdf.excep;

import com.shao.onlinepdf.dto.Result;

/**
 * api异常
 * @author shaohuailin
 * @date 2021/11/19
 */
public class ApiException extends RuntimeException {
    private Result result;
    public ApiException(String message) {
        super(message);
        result = Result.fail(message);
    }

    /**
     * 获取结果
     * @return
     */
    public Result getResult() {
        return result;
    }
}
